<?php
class tpl_controlpanel extends SClass {

    public function process() {

        $this->assign('title', Engine::GetContentDriver()->getClass(Engine::GetContentDriver()->getContentID())->getField('title'));
        $this->assign('engine_includes', Engine::GetContentDriver()->makeIncludes());
     
        if ($this->isUserAuthorized()) {
            $this->assign('login', $this->getUser()->getLogin());
        }
        
           $user = $this->getUserSecure();
        if ($user) {
            if ($user->getLevel() >= 2) {
        	   $this->assign('autorized', 1);
            }
        }
        
    }


}